import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import GatherParameter from '@main/entities/service/admin/gather/gather-parameter.entity';
import { GatherParameterController } from './parameter/parameter.controller';
import { GatherParameterService } from './parameter/parameter.service';
import GatherMachineParameter from '@main/entities/service/admin/gather/gather-machine-parameter.entity';
import GatherMachine from '@main/entities/service/admin/gather/gather-machine.entity';
import { GatherMachineController } from './machine/machine.controller';
import { GatherMachineService } from './machine/machine.service';
import GatherDistribute from '@main/entities/service/admin/gather/gather-distribute.entity';
import GatherInterfaceImage from '@main/entities/service/admin/gather/gather-interface-image.entity';
// import GatherInterface from '@main/entities/service/admin/gather/gather-interface.entity';
// import GatherAdjustmentProcess from '@main/entities/service/admin/gather/gather-adjustment-process.entity';
// import GatherAdjustment from '@main/entities/service/admin/gather/gather-adjustment.entity';
import GatherDistributeParameter from '@main/entities/service/admin/gather/gather-distribute-parameter.entity';
import GatherDistributeParameterComputed from '@main/entities/service/admin/gather/gather-distribute-parameter-computed.entity';
import { GatherDistributeController } from './distribute/distribute.controller';
import { GatherDistributeService } from './distribute/distribute.service';
import { GatherInterfaceImageController } from './interfaceImage/interfaceImage.controller';
import { GatherInterfaceImageService } from './interfaceImage/interfaceImage.service';
// import { GatherInterfaceController } from './interface/interface.controller';
// import { GatherInterfaceService } from './interface/interface.service';
// import { GatherAdjustmentProcessController } from './adjustmentProcess/adjustmentProcess.controller';
// import { GatherAdjustmentProcessService } from './adjustmentProcess/adjustmentProcess.service';
// import { GatherAdjustmentController } from './adjustment/adjustment.controller';
// import { GatherAdjustmentService } from './adjustment/adjustment.service';
// import GatherInterfaceBtn from '@main/entities/service/admin/gather/gather-interface-btn.entity';
// import { GatherInterfaceBtnController } from './interfaceBtn/interfaceBtn.controller';
// import { GatherInterfaceBtnService } from './interfaceBtn/interfaceBtn.service';
// import { GatherMachineUnitService } from './machineUnit/machineUnit.service';
// import { GatherMachineUnitController } from './machineUnit/machineUnit.controller';
// import GatherMachineUnit from '@main/entities/service/admin/gather/gather-machine-unit.entity';
import GatherMachineAdjustment from '@main/entities/service/admin/gather/gather-machine-adjustment.entity';
import { GatherMachineAdjustmentController } from './machineAdjustment/machineAdjustment.controller';
import { GatherMachineAdjustmentService } from './machineAdjustment/machineAdjustment.service';
import { SystemModule } from '../system/system.module';

@Module({
  imports: [
    SystemModule,
    TypeOrmModule.forFeature([
      GatherParameter,
      GatherMachine,
      GatherMachineParameter,
      GatherDistribute,
      GatherInterfaceImage,
      // GatherInterface,
      // GatherAdjustmentProcess,
      // GatherAdjustment,
      GatherDistributeParameter,
      GatherDistributeParameterComputed,
      // GatherInterfaceBtn,
      // GatherMachineUnit,
      GatherMachineAdjustment,
    ]),
  ],
  controllers: [
    GatherParameterController,
    GatherMachineController,
    GatherDistributeController,
    GatherInterfaceImageController,
    // GatherInterfaceController,
    // GatherAdjustmentProcessController,
    // GatherAdjustmentController,
    // GatherInterfaceBtnController,
    // GatherMachineUnitController,
    GatherMachineAdjustmentController
  ],
  providers: [
    GatherParameterService,
    GatherMachineService,
    GatherDistributeService,
    GatherInterfaceImageService,
    // GatherInterfaceService,
    // GatherAdjustmentProcessService,
    // GatherAdjustmentService,
    // GatherInterfaceBtnService,
    // GatherMachineUnitService,
    GatherMachineAdjustmentService
  ],
  exports: [TypeOrmModule, GatherMachineService],
})
export class GatherModule {}
